package classes

class Greeter(private val name: String) {
    var lastName: String = "zhang"
        get() = field.uppercase()   // 将变量赋值后转换为大写
        set

    var siteName = name
    fun greet() {
        println("Hello, $name")
    }

    fun getGender() : String{
        return this.lastName
    }
}
